<?php
    $reporte = new Campania;
    $reporteData = $reporte->generatePieGeneralCampania($id);
?>
<?php if (!empty($reporteData['series'][0]['data'])): ?>
    <div class="widget blue">
        <div class="widget-title">
            <h4><i class="icon-rocket"></i> Total de Acciones    
            </h4>
            <span class="tools">
                <a href="javascript:;" class="icon-chevron-down"></a>
            </span>
        </div>
        <div class="widget-body">
            <?php
            //$reporte = new Campania;
            $this->Widget('ext.highcharts.HighchartsWidget', array(
                'scripts' => array(
                    'modules/exporting', // adds Exporting button/menu to chart
                ),
                'options' => $reporteData
            ));
            ?>

        </div>
    </div> 
<?php endif; ?>
